package com.wind.taobao.api.picture.rest
{
	import com.wind.taobao.api.picture.convert.PictureConvert;
	import com.wind.taobao.api.picture.model.Picture;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	/**
	 * taobao.picture.upload Response
	 * @author fxy
	 *
	 */
	public class PictureUploadResponse extends TaobaoResponse
	{
		public var picture:Picture;

		public function PictureUploadResponse(response:TaobaoResponse=null)
		{
			super(response);
			initPicture();
		}

		private function initPicture():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("picture"))
					picture=PictureConvert.convertPicture(body["rsp"]["picture"]);
			}
		}

	}
}